import { fetchGet, fetchPost, fetchFile } from "../utils/http.js";
// 试用详情
export const fnGetGoodData = (param) => {
    return fetchPost("Goods/goodsDetail", param);
};

// 试用记录
export const fnGetRecord = (param) => {
    return fetchPost("Goods/goodsLog", param);
}

export const fnApplyData = (param) => {
    return fetchPost("Goods/apply", param)
}

// 超级试用申请
export const fnApplySuper = (param) => {
    return fetchPost("Goods/apply", param)
}

export const fnCheckSk = () => {
    return fetchPost("Index/iosCheck", {})
}
export const fnCheckShopName = (param) => {
    return fetchPost("Goods/storename", param)
}

export const fnChangeKeyword = (param) => {
    return fetchPost("Goods/keyword", param)
}

export const verifyCheck = (param) => {
    return fetchPost("User/verifyCheck", param)
}

// 评价列表
export const fnGetCommentList = (param) => {
    return fetchPost("Goods/comment_list", param)
}


export default {
    fnGetGoodData,
    fnGetRecord,
    fnApplyData,
    fnCheckSk,
    fnCheckShopName,
    fnChangeKeyword,
    fnApplySuper,
    verifyCheck,
    fnGetCommentList
}